package com.ocom.webapi.vo.studentpage;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class OnShowVo implements Serializable {

    private static final long serialVersionUID = -344552825222583413L;
    //单位编号
    @Min(1)
    @NotNull( message = "comId 不能为空")
    @JsonProperty("comId")
    private Long comId;


    //部门id
    @JsonProperty("deptId")
    private Long deptId= 0l;

    //人员姓名
    @JsonProperty("pName")
    private String pName;
    //人员编号
    @JsonProperty("pCode")
    private String pCode;


    //页码
    @NotNull( message = "page 不能为空")
    @JsonProperty("page")
    private Integer page;
    //每页数量
    @NotNull( message = "size 不能为空")
    @JsonProperty("size")
    private Integer size;

    private Integer status;

    private Integer roomPerson;

    /**
     * regionId: 6
     * regionOnline: 0
     * regionOrigId: 7
     */
    private Integer regionOnline = -1;
    private Integer regionId;
    private Integer regionOrigId;

    //人员类型
    @JsonProperty("pType")
    private String pType;

}
